<template>
  <!-- <template v-if="isCustom">
    <BwCustomComAtrrSet />
  </template>
  <template v-else>
    <BwBaseComAtrrSet />
  </template> -->

  <BwComAttrSet />
</template>

<script lang="ts">
import { computed, defineComponent } from 'vue'
import { useComDesignStoreWithOut } from '@/store'

// import BwBaseComAtrrSet from './coms/baseCom/index.vue'
// import BwCustomComAtrrSet from './coms/customCom/index.vue'

import BwComAttrSet from './index copy.vue'

import { BwComTypeEnum } from '@bitwit/base-com-render'
export default defineComponent({
  name: 'BwCom',
  components: {
    // BwBaseComAtrrSet,
    // BwCustomComAtrrSet,
    BwComAttrSet,
  },
  props: {},
  emits: [],
  setup() {
    const designStore = useComDesignStoreWithOut()

    const isCustom = computed(() => {
      const curNode = designStore.selectNodeEle
      return curNode?.comType === BwComTypeEnum.custom
    })

    return { isCustom }
  },
})
</script>

<style lang="less" scoped></style>
